package com.lk.model;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;


/**
 * gps数据
 */
@Data
@TableName("t_gps_data")
public class TGpsData {

    private static final long serialVersionUID = 276143166320688337L;

    /**
     * ID
     */
    @ExcelIgnore
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * IMEI码
     */
    @ExcelIgnore
    @ExcelProperty("imei")
    private String imei;

    /**
     * gps状态
     */
    @ExcelProperty("gps_state")
    private String gpsState;

    /**
     * 纬度
     */
    @ExcelProperty("latitude")
    private double latitude;

    /**
     * 经度
     */
    @ExcelProperty("longitude")
    private double longitude;

    /**
     * 创建时间
     */
    @ExcelProperty("create_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}